import { HandlerBase } from "src/wl/handler_base";
import { AuditTConst } from "src/consts/audit_template_const";
import { PopupName } from "src/consts/popup_const";

export default class OperatorData extends HandlerBase {
    doNew(): void {
        WLCommit(AuditTConst.CommitType, "add");
        WLCommit(AuditTConst.CommitAuditTShowList, {})
        WLLib.panel(PopupName.AuditT_Panel);
    }

    doQiYong(data: any): void {
        WLDispatch(AuditTConst.DispatchAuditTQiYong, data);
    }
}